package org.demo.kong.dto.request;

import com.google.gson.annotations.SerializedName;
import lombok.Data;

import java.io.Serializable;

@Data
public class Oauth2ClientCredentialsReq extends Oauth2TokenReq implements Serializable {

    /**
     * 权限范围(见kong Oauth2 插件配置)
     */
    @SerializedName("scope")
    private String scope;

    /**
     * Client ID
     */
    @SerializedName("client_id")
    private String clientId;

    /**
     * 客户端密钥(不能泄漏)
     */
    @SerializedName("client_secret")
    private String clientSecret;

    /**
     * 授权模式
     */
    @SerializedName("grant_type")
    private final String grantType = "client_credentials";
}
